package com.example.api;

import com.example.api.dto.ExecuteUserDTO;
import com.example.api.dto.TiggerDTO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author fanhang
 */
public class JobExecutor implements JobApi {
    private static final Logger LOGGER = LoggerFactory.getLogger(JobExecutor.class);

    @Override
    public boolean executeUser(ExecuteUserDTO user) {
        LOGGER.info("执行用户: {}", user);
        return true;
    }

    @Override
    public String tigger(TiggerDTO tigger) {
        LOGGER.info("触发: {}", tigger);
        return null;
    }
}
